import { IsNotEmpty } from 'class-validator';

export class CreateAuthDto {
  @IsNotEmpty({ message: '用户名不能为空' })
  username: string;
  @IsNotEmpty({ message: '密码不能为空' })
  password: string;
  //   确认密码
  @IsNotEmpty({ message: '确认密码不能为空' })
  confirmPassword: string;
  @IsNotEmpty({ message: '邮箱不能为空' })
  email: string;
  @IsNotEmpty({ message: '验证码不能为空' })
  code: string;
}
